package ge.tsu.java.project.commons;

import java.io.Serializable;

public class Contact implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3929806097849311570L;

	private String id;
	private Status status;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Contact)) return false;
		Contact other = (Contact) obj;
		return id != null ? id.equals(other.id) : false;
	}

	@Override
	public String toString() {
		return "Contact[Id=" + id + ", Status=" + status + "]";
	}

	public enum Status {
		ONLINE, OFFLINE
	}

}
